
export const allNativeEvents = new Set(); //所有本地事件  ['click', 'dblclick']
//export const registrationNameDependencies = {};
/**
 * onChange [input,keydown,change]
 * 注册两个阶段事件
 * @param {*} registrationName 注册名称  onClick;onDoubleClick
 * @param {*} dependencies 依赖的事件  click;dblclick
 */
export function registerTwoPhaseEvent(registrationName,dependencies){
    // 冒泡阶段
    registerDirectEvent(registrationName,dependencies);//onClick,[click]
    // 捕获阶段
    registerDirectEvent(registrationName+"Capture",dependencies);//onClickCapture,[click]
}
export function registerDirectEvent(registrationName,dependencies){
    //registrationNameDependencies[registrationName]=dependencies;
    for(let i=0;i<dependencies.length;i++){//click dblclick
        allNativeEvents.add(dependencies[i]); //[{'click', 'dblclick'}]
    }
}